package com.bootdo.program.wallpaper.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.program.wallpaper.dao.AppConnectDao;
import com.bootdo.program.wallpaper.domain.AppConnectDO;



@Service
public class AppConnectService {
	@Autowired
	private AppConnectDao appConnectDao;
	
	
	public AppConnectDO get(Long id){
		return appConnectDao.get(id);
	}

	public AppConnectDO getByOpenId(String openid){
		return appConnectDao.getByOpenId(openid);
	}
	public AppConnectDO getByUserId(String userId){
		return appConnectDao.getByUserId(userId);
	}
	
	
	public List<AppConnectDO> list(Map<String, Object> map){
		return appConnectDao.list(map);
	}
	
	
	public int count(Map<String, Object> map){
		return appConnectDao.count(map);
	}
	
	
	public int save(AppConnectDO appConnect){
		return appConnectDao.save(appConnect);
	}
	
	
	public int update(AppConnectDO appConnect){
		return appConnectDao.update(appConnect);
	}
	
	
	public int remove(Long id){
		return appConnectDao.remove(id);
	}
	
	
	public int batchRemove(Long[] ids){
		return appConnectDao.batchRemove(ids);
	}
	
}
